<template>
    <div>
        <Bread></Bread>
        <el-card>
            <el-table :data="roleAll" border style="width: 100%">
                <el-table-column type="index" label="#" >
                </el-table-column>
                <el-table-column prop="authName" label="权限名称" >
                </el-table-column>
                <el-table-column prop="path" label="路径" >
                </el-table-column>
                <el-table-column prop="address" label="等级">
                    <!-- <template slot-scope="scope">
                        <el-button ></el-button>
                    </template> -->
                    <el-tag>标签一</el-tag>
                </el-table-column>
            </el-table>
        </el-card>
    </div>
</template>

<script>
import Bread from '@/components/Bread.vue'
import roleAll from '@/utils/roleApi/roleAllApi.js'
export default {
    components: { Bread },
    data() {
        return {
            roleAll:[]
        }
    },
    methods:{
        async getRoleAll() {
            let res = await roleAll();
            this.roleAll = res.data;
        }
    },
    mounted() {
        this.getRoleAll();
    }
}
</script>

<style lang="scss" scoped>

</style>